<?php
require_once '../conn.php';
$sql = $conn->prepare("SELECT id,wx_appid,systemName,systemVersion,icpNumber,sysNumber,registerStatus,upTime,crTime FROM sys_config WHERE id = ?");
$selId = 3306;
$sql->bind_param('i', $selId);
if($sql->execute()){
  $result = $sql->get_result();
  $res = $result-> fetch_assoc();
  header('Content-Type: application/json');echo json_encode(['code' => 200,'data'=>$res,'message'=>'查询成功！']);
}else{header('Content-Type: application/json');echo json_encode(['code' => 400,'message'=>'查询失败！']);}